Posted by marvin from l316t1p15.netway.at (195.96.17.143)on March 14, 1998 at 15:28:34:
Hi,
after having been thinking the Glide-wrapper thing
over in my mind for quite a long time (before the
now famous MisterX turned up..), and after having
read into the Glide and RRedline SDK, I now have
finally begun to play a little with BigRRed... -
nice work, congratulations to all who have
contributed so far!
Two little things I can offer by myself right now:
1) I managed to compile the wrapper with Borland 5.0x -
if anyone needs help, I now know how it works - actually,
you just need the right .def file - probably some other
compilers may need it too - I did put it together with
the use of the cool Borland utility IMPDEF (which makes
a .DEF from a .DLL, so analyzing the original glide
dll was one of the first things I did...).
The problems with name mangling seem to be
different with different compilers: Borland doesn't
mangle names when calling with _stdcall (which you need
for 3dfx), so there are no underscore, etc... in the
names... As a consequence, the glide2x.def has simply
to be of the format:
EXPORTS
_grxxxxx@yy=grxxxxx
....
I can upload/mail the .def on request...
2) Taking the very first version of the wrapper (the
version which is on this board for download), I
made a small logging macro and put it into each
glide-call. As a result, you can start your
favourite game, play a while (without seeing much,
of course) and after finishing it, you can check
in a log file which Glide-functions actually have
been called at least once.
So far I did only test it with the test programs
and with Croc (this is the game which gives me
a reason to actually start my work on the
wrapper!). You will be surprised how few Glide
functions are actually used! Of course, this is
exactly what I hoped.... If I have some spare time
in the next days or weeks, I will concentrate on
Croc... It actually surprised me that you really
can see something useful in Croc, even with this
early version of the wrapper!
If someone is interested in this small dummy/logging-
version of the wrapper, I can upload or mail
it...
cheers
marvin